<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="copyright" content="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发表评论</title>
<style type="text/css">
body{ font-size:12px;}
.xiahuaxian {
	border-bottom-width: 1px;border-bottom-style: dashed;border-bottom-color:#0099CC;
}
.hengxian { 
	border-left-width: 1px;border-left-style: dashed;border-left-color:#000;
}
</style>

</head>

<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
<body>
<table align="center" cellpadding="3" cellspacing="3" bgcolor="#D0EBFA" style="border:1px solid #75C1EB;">
<form name="frm" method="post" action="/pinglun/addsave">

<tr>
  <td>
<table width="500" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td colspan="2" height="24" bgcolor="#D0EBFA" align="center"><b>发表评论</b></td>
  </tr>
  <tr>
    <td colspan="2" height="15">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="xiahuaxian">按以下规则，成功点评后将获得此订单相应的积分(与订单总额及订单类型有关)，积分可直接抵用现金，很划算哦！</td>
  </tr>
  <tr>
    <td height="27" width="70"class="xiahuaxian">&nbsp;&nbsp;订单号</td>
    <td class="xiahuaxian"><input type="text" name="pinglun1" id="pinglun1" readonly="true" value="<{$rs.orderform3}>" style="border:0px;"/></td>
  </tr>
  <tr>
    <td height="25" class="xiahuaxian">&nbsp;&nbsp;产品名称</td>
    <td class="xiahuaxian"><{$rs.tour1}><input type="hidden" name="pinglun2" value="<{$rs.tour0}>"/></td>
  </tr>
  <tr>
    <td height="25" class="xiahuaxian">&nbsp;&nbsp;姓名</td>
    <td class="xiahuaxian"><input type="text" name="pinglun4" value=""/>
      <input name="pinglun7" type="radio" value="1212" checked="checked" />
      显示
      <input type="radio" name="pinglun7" value="1213" />
      不显示(*不显示为匿名发表)</td>
  </tr>
  <tr>
    <td height="25" class="xiahuaxian">&nbsp;&nbsp;来自</td>
    <td class="xiahuaxian"><input type="text" name="pinglun15" />
      (请按国家、地区、城市顺序填写)</td>
  </tr>
 
  <tr>
    <td height="40" colspan="2" class="xiahuaxian">请您针对梦之旅的服务进行点评（包括预订、售后等）<br><span style="color:#F00">&nbsp;&nbsp;注:50字及以上字数才能获得积分</span>,已输入 <span style="color:#F00"><label id="ysr">0</label></span> 字</td>
  </tr>
  <tr>
    <td height="25" class="xiahuaxian">&nbsp;&nbsp;内容</td>
    <td class="xiahuaxian"><textarea name="pinglun5"  id="pinglun5" cols="50" rows="4" onchange="cot()"></textarea></td>
  </tr>
   <tr>
    <td height="40" colspan="2" class="xiahuaxian">请您针对当地接待旅行社的服务进行点评（包括导游、司机、交通、食宿等）</td>
  </tr>
  <tr>
    <td height="25" class="xiahuaxian">&nbsp;&nbsp;</td>
    <td class="xiahuaxian"><textarea name="pinglun6" id="pinglun6" cols="50" rows="4" ></textarea></td>
  </tr>
  <tr>
    <td height="25" colspan="2" class="xiahuaxian">&nbsp;&nbsp;<strong>请你评分</strong></td>
  </tr>
  <tr>
    <td height="25" colspan="2" class="xiahuaxian" align="center"><table width="400" border="0" cellspacing="0" cellpadding="0">
      <tr align="center">
        <td height="25">预定</td>
        <td class="hengxian">客服</td>
        <td class="hengxian">导游</td>
        <td class="hengxian">住宿</td>
        <td class="hengxian">交通</td>
        <td class="hengxian">用餐</td>
        <td class="hengxian">总计</td>
      </tr>
      <tr align="center">
        <td height="25"><select name="pinglun9" id="pinglun9" onchange="javascript:baifenbi()">
		<script>for(i=5;i>-1;i--){document.write("<option value="+i+">"+i+"</option>");}</script>
        </select>
        </td>
        <td class="hengxian"><select name="pinglun10" id="pinglun10"  onchange="javascript:baifenbi()">
		<script>for(i=5;i>-1;i--){document.write("<option value="+i+">"+i+"</option>");}</script>
        </select>
        </td>
        <td class="hengxian"><select name="pinglun11" id="pinglun11" onchange="javascript:baifenbi()">
		<script>for(i=5;i>-1;i--){document.write("<option value="+i+">"+i+"</option>");}</script>
        </select>
        </td>
        <td class="hengxian"><select name="pinglun12" id="pinglun12" onchange="javascript:baifenbi()">
		<script>for(i=5;i>-1;i--){document.write("<option value="+i+">"+i+"</option>");}</script>
        </select>
        </td>
        <td class="hengxian"><select name="pinglun13" id="pinglun13" onchange="javascript:baifenbi()">
		<script>for(i=5;i>-1;i--){document.write("<option value="+i+">"+i+"</option>");}</script>
        </select>
        </td>
        <td class="hengxian"><select name="pinglun14" id="pinglun14" onchange="javascript:baifenbi()">
		<script>for(i=5;i>-1;i--){document.write("<option value="+i+">"+i+"</option>");}</script>
        </select>
        </td>
        <td class="hengxian"><label id="bili" style="font-weight:bold">100%</label></td>
      </tr>
    </table></td>
  </tr>
  <tr>
   <td>&nbsp;&nbsp;验证码:</td>
   <td>
<input name="yzm" id="yzm" type="text" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid" size="8" />
<img src="/inc/checkcode.php" />

</td>
  </tr>
  <tr>
    <td colspan="2" align="center" height="50">
   <input type="hidden" name="pinglun3" value="579" /> 
	<input type="image" src="http://pw.dreams-travel.com/Hotel_evaluation/img_/fabiao-button.gif" id="mysubmit" />	</td>
  </tr>
</table>

</td></tr>
</form>
</table>
</body>
</html>
<script type="text/javascript">
function cot(){
	var ysr=document.getElementById("ysr");
	var tt=document.getElementById("content");
	var ttv=tt.value;
	var ttvl=ttv.length;
	ysr.innerHTML=ttvl;
}

//验证表单
$(document).ready(function(){
	$("#mysubmit").bind("click",function(){
		yzm=$("#yzm").val();
		if(!yzm.match(/^[\w]{4}$/)){
			alert("请输入正确的验证码");
			$("#yzm").focus();
			return false;
		}
		
		pinglun4=$("#pinglun4").val();
		if(!pinglun4.match(/^[\S]+$/)){
			alert("用户名称不能为空");
			$("#pinglun4").focus();
			return false;
		}
		pinglun5=$("#pinglun5").val();
		if(!pinglun5.match(/[\S]{2,}/)){
			alert("对梦之旅的点评不能为空");
			$("#pinglun5").focus();
			return false;
		}
		
		pinglun6=$("#pinglun6").val();
		if(!pinglun6.match(/[\S]{2,}/)){
			alert("对当地地接社的点评不能为空");
			$("#pinglun6").focus();
			return false;
		}
		return true;
		
	});
	
	
});


</script>
